package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * @Author hao
 * @Date 2023/10/11 17:03
 * @PackageName:com.atguigu.spzx.manager.service
 * @ClassName: SysRoleService
 * @Description: TODO
 * @Version 1.0
 */
public interface SysRoleService {
    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);

    Map<String, Object> findAllRoles();

    Map<String, Object> findAllRoles(Long userId);
}
